@extends('layouts.default')
@section('content') 
@foreach ($values as $v)
<div class="box">
    <header>
        <div class="icons">
            <i class="fa fa-list"></i>
        </div>
        <h5>{{Lang::get('messages.upload_docs')}}</h5>
        <div class="toolbar">
            <span class="label label-default">
                <i class="fa fa-list-alt"></i>
            </span> 
        </div>
    </header>
    @foreach ($values as $v) 
    <div class="body">
        <form action="<?php echo $upload_url ?>" enctype="multipart/form-data" method="post">
            <div class="form-group">
                <label>{{Lang::get('messages.owner_cert_doc')}}</label>                  
                <input type="file" name="owner_cert_doc" size="40">                 
            </div>
            <div class="form-group">
                <label>{{Lang::get('messages.sgs_doc')}}</label>
                <input type="file" name="sgs_doc"  size="40">
            </div>
            <div class="form-group">
                <label>{{Lang::get('messages.tpl_doc')}}</label>
                <input type="file" name="tpl_doc" size="40">
            </div>
            <div class="form-group">
                <label>{{Lang::get('messages.kasko_doc')}}</label>
                <input type="file" name="kasko_doc" size="40">
            </div>
            <div class="form-group">
                <label>{{Lang::get('messages.inter_permis_doc')}}</label>
                <input type="file" name="inter_permis_doc" size="40">
            </div>               
            <div class="form-group">
                <label>{{Lang::get('messages.drive_permis_doc')}}</label>
                <input type="file" name="drive_permis_doc" size="40">
            </div>
            <div class="form-group">
                <label>{{Lang::get('messages.authoriz_doc')}}</label>
                <input type="file" name="authoriz_doc" size="40"><br/> 
                <div>
                    @if(Session::has('message'))
                    <p class="alert {{ Session::get('alert-class', 'alert-danger') }}">
                        {{ Session::get('message') }}
                    </p>
                    @endif
                </div>
            </div>
            <input type="hidden" name="id_value" value="<?php echo $v->id ?>"><br/>
            <input type="submit" value="{{Lang::get('messages.upload_btn')}}">
        </form>
    </div>
    @endforeach
</div>
@endforeach
@stop